package com.fuluwa.domain.bank.model;

import javax.persistence.Column;
import javax.persistence.Embeddable;
//can be extend to enity.but now as a attribute.
//@Entity
//@Table(name = "b_bank")
@Embeddable
public class Bank {// extends AbstractIdDomainObject {
	@Column(name="cod_bank")
	private Long id;
	
//	@Transient
//	private String name;

	private Bank() {
	}
	
	public static Bank getDefaultBank() {
		return new Bank(1L);
	}

	public Bank(Long id) {
		this.id=id;
	}

	/*public Bank(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}
*/
}
